import java.util.Comparator;

import org.eclipse.swt.graphics.FontData;


public class FontComparator implements Comparator<FontData> {

    public int compare(FontData o1, FontData o2) {
        int cmp = o1.getName().compareTo(o2.getName());
        
        if (cmp != 0) {
            return cmp;
        }
        
        return o1.getStyle() - o2.getStyle();
    }
}